package com.linhu.cloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {

	private final Logger logger = LoggerFactory.getLogger(ConsumerController.class);

	@Autowired
	DcClient dcClient;

	@GetMapping("/consumer")
	public String dc() {
		logger.info("Ribbon Consuming...");
		return dcClient.consumer();
	}

}
